package 超市购物系统;

public class Goods {

    private String id;
    private String name;
    private double price;
    private String danWei;

    public Goods() {
    }

    public Goods(String id, String name, double price, String danWei) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.danWei = danWei;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getDanWei() {
        return danWei;
    }

    public void setDanWei(String danWei) {
        this.danWei = danWei;
    }

    public void show() {
        System.out.println(this.id+"  "+this.name+"  "+this.price+"  "+this.danWei);
    }
}
